#include "test_service_factory.h"
#include "test_service.hpp"
#include <skyroad/service/service_factory.hpp>

class test_service_factory : public service_factory 
{
public:
    test_service* create(bus& bus)
    {
        return new test_service(bus);
    }

    void free(service* srv)
    {
        delete srv;
    }
};


SKYROAD_DECL void* __stdcall get_factory()
{
    static test_service_factory factory;
    return (void*)&factory;
}